/*
 * ImageHolder.java
 * Created by: JakeSamiRulz
 *
 * Holds information about images for AnimationFrame
 */

package AnimationSystem;

import java.awt.Image;

class ImageHolder{
    public String theString;
    public int loop;//Takes care of individual loops
    public int cutptx;//The x point to cut out
    public int cutpty;//The y point to cut out 
    public int cutsx;//The length of the cut
    public int cutsy;//The width of the cut
    public int finalx;//The final x destination of the image
    public int finaly;//The final y destination of the image
    
    ImageHolder(){
        loop = 0;
        cutptx = -1;
        cutpty = -1;
        cutsx = 0;
        cutsy = 0;
        finalx = 0;
        finaly = 0;
    }
    
    ImageHolder(int finallocx, int finallocy){
        loop = 0;
        cutptx = -1;
        cutpty = -1;
        cutsx = 0;
        cutsy = 0;
        finalx = finallocx;
        finaly = finallocy;
    }
    
    //checks for if cut images where added
    public boolean checkZero(){
        if(cutptx < 0 || cutpty < 0 || cutsy < 1 || cutsy < 1)
            return true;
        return false;
    }
}
